/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pnt.message;

/**
 *
 * @author andrew
 */
public abstract class Message {
    public abstract String toString(String end, String term);
    public abstract byte[] toBytes();

    private int transactionNumber;
    
    public int getTransactionNumber(){
        return transactionNumber;
    }
    
    public Message(int transactionNumber){
        this.transactionNumber = transactionNumber;
    }
    
    public String toString(){
    	return toString(" \n\r", " \n\r\n\r\n\r");
    }
    
    public String niceString(){
    	return toString("\n", "\n");
    }
}
